import 'package:json_annotation/json_annotation.dart';

part 'refresh_token_req.g.dart';

@JsonSerializable()
class RefreshTokenReq {
  final Input? input;

  const RefreshTokenReq({
    this.input,
  });

  factory RefreshTokenReq.fromJson(Map<String, dynamic> json) =>
      _$RefreshTokenReqFromJson(json);

  Map<String, dynamic> toJson() => _$RefreshTokenReqToJson(this);
}

@JsonSerializable()
class Input {
  @JsonKey(name: 'refresh_token')
  final String refreshToken;

  const Input({
   required this.refreshToken,
  });

  factory Input.fromJson(Map<String, dynamic> json) =>
      _$InputFromJson(json);

  Map<String, dynamic> toJson() => _$InputToJson(this);
}
